<dom-module id="dummy-layout">
  <template>
    <span>[[text]]</span>
    <nuxeo-input value="[[data]]" required></nuxeo-input>
  </template>
  <script>
    Polymer({
      is: 'dummy-layout',
      properties: {
        text: String,
        data: String,
      },
      validate() {
        return new Promise((resolve) => {
          setTimeout(() => {
            resolve(this.text === 'valid');
          }, 100);
        });
      },
    });
  </script>
</dom-module>
